﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KL.Store.Core.Domain;
using TN.Data;
using System.Web;
namespace KL.Store.Data
{
    public class dbBank
    {
        #region Get

        public static Bank Get(short BankId)
        {
            IList<Bank> objectList = new List<Bank>();
            SqlHelper.FillList(dbParameters.dsnStore, "SPR_ESTORE_Bank_Get", objectList, new object[] { BankId });
            return objectList.FirstOrDefault();
        }

        #endregion

        #region GetList

        public static IList<Bank> GetList()
        {
            IList<Bank> objectList = new List<Bank>();
            SqlHelper.FillList(dbParameters.dsnStore, "SPR_ESTORE_Bank_List", objectList);
            return objectList;
        }

        #endregion
    }
}
